package com.idanchuang.count.core.entity;

import lombok.Getter;

/**
 * @author Richard_yyf
 * @version 1.0 2021/5/27
 */
@Getter
public class IncrementCommand {

    private final String key;

    private final int increment;

    public IncrementCommand(String key, int increment) {
        this.key = key;
        this.increment = increment;
    }

    @Override
    public String toString() {
        return "IncrementCommand{" +
                "key='" + key + '\'' +
                ", increment=" + increment +
                '}';
    }
}
